package semantica;

public class PatternAttributeType extends TypeAttribute {

	private String pattern;

	public PatternAttributeType(String pattern)
	{
		this.pattern = pattern;
	}
	
	@Override
	public boolean validate(String val) {
		return val.matches(pattern);
	}

}
